﻿<%@ Page Language="VB" MasterPageFile="~/AdmMaster.master"  AutoEventWireup="false" CodeFile="AdmEvtGerenciamentoInscrito.aspx.vb" Inherits="Eventos_AdmEvtGerenciamentoInscrito" %>

<%@ Register assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.UI" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <div class = "texto-basico">

            <table>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td colspan="3"><p class="titulo-pagina">
                        <asp:Label ID="lblTitulo" runat="server" style="font-weight: 700" Text="Label"></asp:Label></p>
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td style="width: 81px">
                        &nbsp;</td>
                    <td style="width: 62px">
                        &nbsp;</td>
                    <td style="width: 596px">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td style="width: 81px">
                        <asp:Label ID="lblCaptionId" runat="server" Text="Id:"></asp:Label>
                    </td>
                    <td style="width: 62px">
                        <asp:Label ID="lblId" runat="server" Font-Bold="True" Text="Label"></asp:Label>
                    </td>
                    <td style="width: 596px">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td style="width: 81px" valign="middle">
                        Nome:</td>
                    <td colspan="2">
                        <asp:Label ID="lblNome" runat="server" Font-Bold="True" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px; ">
                    </td>
                    <td style="width: 81px; ">
                        Data Início:</td>
                    <td colspan="2">
                        <asp:Label ID="lblDtInicio" runat="server" Font-Bold="True" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td style="width: 81px">
                        Data Fim:</td>
                    <td colspan="2">
                        <asp:Label ID="lblDtFim" runat="server" Font-Bold="True" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td style="width: 81px">
                        Ativo:</td>
                    <td colspan="2">
                        <asp:CheckBox ID="chbAtivo" runat="server" Enabled="False" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td style="width: 81px">
                        &nbsp;</td>
                    <td colspan="2">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td colspan="3">
                        <asp:Panel ID="panListaInscritos" runat="server">
                            <table style="width:100%;">
                                <tr>
                                    <td>
                                        <b>Lista de Inscritos</b></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:GridView ID="grvInscritos" runat="server" AutoGenerateColumns="False" 
                                            DataKeyNames="IdInscrito" SkinID="grvEventos">
                                            <Columns>
                                                <asp:TemplateField>
                                                    <EditItemTemplate>
                                                        <b>
                                                        <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("ttt") %>' />
                                                        </b>
                                                    </EditItemTemplate>
                                                    <HeaderTemplate>
                                                        <b>Email</b><asp:CheckBox ID="chbEmailHeader" runat="server" 
                                                            AutoPostBack="True" oncheckedchanged="chbEmailHeader_CheckedChanged" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbEmail" runat="server" />
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <EditItemTemplate>
                                                        <asp:CheckBox ID="CheckBox2" runat="server" Checked='<%# Bind("Aprovado") %>' />
                                                    </EditItemTemplate>
                                                    <HeaderTemplate>
                                                        <b>Aprovados</b><asp:CheckBox ID="chbAprovadosHeader" runat="server" 
                                                            AutoPostBack="True" oncheckedchanged="chbAprovadosHeader_CheckedChanged" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbAprovado" runat="server" 
                                                            Checked='<%# Bind("Aprovado") %>' />
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="Nome" HeaderText="Nome">
                                                    <ItemStyle Width="200px" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="Cidade/UF">
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CidadeEstado") %>'></asp:TextBox>
                                                    </EditItemTemplate>
                                                    <ItemTemplate>
                                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Cidade") %>'></asp:Label>
                                                        &nbsp;/
                                                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("Estado") %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="150px" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="DataNascimento" DataFormatString="{0:dd/MM/yyyy}" 
                                                    HeaderText="Nascimento">
                                                    <ItemStyle Width="50px" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="Telefones">
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("tel") %>'></asp:TextBox>
                                                    </EditItemTemplate>
                                                    <ItemTemplate>
                                                        <table style="width:100%;">
                                                            <tr>
                                                                <td style="width: 40px">
                                                                    Cel:</td>
                                                                <td>
                                                                    <asp:Label ID="Label4" runat="server" Text='<%# Bind("TelefoneCelular") %>'></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="width: 40px">
                                                                    Res:</td>
                                                                <td>
                                                                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("TelefoneResidencial") %>'></asp:Label>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:TemplateField ShowHeader="False">
                                                    <EditItemTemplate>
                                                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" 
                                                            CommandName="Update" Text="Update"></asp:LinkButton>
                                                        &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                                                            CommandName="Cancel" Text="Cancel"></asp:LinkButton>
                                                    </EditItemTemplate>
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                                            CommandName="Edit" SkinID="lnkGridView" Text="Detalhes"></asp:LinkButton>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;<asp:Button ID="btnEmail" runat="server" SkinID="btnPadrao" Text="Email" 
                                            Width="99px" />
                                        &nbsp;
                                        <asp:Button ID="btnSalvar" runat="server" SkinID="btnPadrao" Text="Salvar" 
                                            Width="99px" />
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <asp:Panel ID="panDetalhesInscrito" runat="server">
                            <table style="width:100%;">
                                <tr>
                                    <td>
                                        <b>Detalhes do Inscrito</b></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:DetailsView ID="dtvDetalhesInscrito" runat="server" 
                                            AutoGenerateRows="False" DataKeyNames="IdInscrito" SkinID="dtvPadrao">
                                            <Fields>
                                                <asp:BoundField DataField="IdInscrito" HeaderText="Id:">
                                                    <HeaderStyle Width="100px" />
                                                    <ItemStyle Width="250px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Aprovado" HeaderText="Aprovado:">
                                                <HeaderStyle Width="100px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Cep" HeaderText="CEP:">
                                                <HeaderStyle Width="100px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Cidade" HeaderText="Cidade:">
                                                <HeaderStyle Width="100px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Cpf" HeaderText="CPF:">
                                                <HeaderStyle Width="100px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="DataNascimento" 
                                                    DataFormatString="{0:dd/MM/yyyy}" HeaderText="Nascimento:">
                                                    <HeaderStyle Width="100px" />
                                                    </asp:BoundField>
                                                <asp:BoundField DataField="Email" HeaderText="Email:">
                                                <HeaderStyle Width="100px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Endereco" HeaderText="Endereço:">
                                                <HeaderStyle Width="100px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Estado" HeaderText="Estado:">
                                                <HeaderStyle Width="100px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="EstadoCivil" HeaderText="Est. Civil:">
                                                <HeaderStyle Width="100px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Nome" HeaderText="Nome:">
                                                <HeaderStyle Width="100px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Pais" HeaderText="País:">
                                                <HeaderStyle Width="100px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Sexo" HeaderText="Sexo:">
                                                <HeaderStyle Width="100px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="TelefoneCelular" HeaderText="Tel. Cel:">
                                                <HeaderStyle Width="100px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="TelefoneResidencial" HeaderText="Tel. Res:">
                                                <HeaderStyle Width="100px" />
                                                </asp:BoundField>
                                            </Fields>
                                        </asp:DetailsView>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnAprovarInscrito" runat="server" SkinID="btnPadrao" Text="Aprovar" 
                                            Width="99px" />
                                        <asp:Button ID="btnReprovarInscrito" runat="server" SkinID="btnPadrao" 
                                            Text="Reprovar" Width="99px" />
                                        &nbsp;
                                        <asp:Button ID="btnVoltar" runat="server" SkinID="btnPadrao" Text="Voltar" 
                                            Width="99px" />
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td colspan="3">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td style="width: 81px">
                        &nbsp;</td>
                    <td colspan="2">
                        &nbsp;</td>
                </tr>
                </table>
                

     
       </div>
     
   
</asp:Content>
